package vek.XML.parsedObjects;

/**
 * A simple class which contains the Product data read by the XML parsers
 * @author Christian, Michal og Jakob (Hold 1, gruppe 2)
 */
public class ParsedProduct {
    
    public String nameOfProduct;
    public String typeOfProduct;
    public double priceOfProduct;
    
    /**
     * 
     * @param name the name of the product
     * @param type the type of the product
     * @param price the price of the product
     */
    
    public ParsedProduct(String name, String type, double price)
    {
        nameOfProduct = name;
        typeOfProduct = type;
        priceOfProduct = price;
    }
    
    /**
     * Gets this ParsedProduct as a String, uses solely for debugging purposes.
     * @return this object as a String
     */
    
    public String toString()
    {
        return nameOfProduct + ", " + typeOfProduct + ", " + priceOfProduct + " DKK";
    }

}
